package day07.KeJian;

import java.util.Date;

public class DateDemo02 {
    public static void main(String[] args) {
        Date d1 = new Date();
        long tume = d1.getTime();
        System.out.println(tume);
        double y = tume*1.0/1000/60/60/24/365;
        d1.setTime(tume);
        System.out.println(y);
    }
}
